package com.example.denglu.util;

import com.alibaba.fastjson.JSONObject;

public class JSONUtils {
    public static boolean isJSON(String str) {
        boolean result = false;
        try {
            JSONObject obj= JSONObject.parseObject(str);
            result = true;
        } catch (Exception e) {
            result=false;
        }
        return result;

    }
}
